Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use embed instead of packr #157

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bestbeforetoday
Copy link
Member

@bestbeforetoday bestbeforetoday commented Nov 30, 2024

Packr is deprecated and no longer maintained. This change replaces use of packr with the embed package from the Go standard library.

Closes #155.

Transaction functions with struct argument that have all their fields as
JSON optional causes a parsing error on the chaincode metadata:

    components.schemas.Args.required: Array must have at least 1 items

Having no required fields causes the `required` property to be an empty
array. Draft 4 of the JSON schema specification requires string arrays
to contain at least one element, so an error occurs.

This change modifies the JSON description of the ObjectMetata `Required`
property so that it is omitted when empty.

Signed-off-by: Mark S. Lewis <[email protected]>
@bestbeforetoday bestbeforetoday force-pushed the remove-packr branch 3 times, most recently from db12832 to 95e215c Compare November 30, 2024 16:04
Packr is deprecated and no longer maintained. This change replaces use
of packr with the embed package from the Go standard library.

Signed-off-by: Mark S. Lewis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid use of (deprecated) packr module
1 participant